import java.util.Scanner;

public class Demo01 {
    public static void main(String args[]) {
        Operate operate = new Operate();
        Scanner sc=new Scanner(System.in);
        String str=sc.nextLine();
        int t = operate.caculate(str);
        System.out.println(t);
    }
}
